import request from '@/utils/libs/request'

/**
 * 优惠券列表
 * @param params
 */
export function couponList(params: Record<string, any>) {
    return request.get('coupon/list', { params })
}

/**
 * 添加广告
 * @param params
 */
export function addCoupon(params: Record<string, any>) {
    return request.post('coupon/add', params)
}

/**
 * 编辑广告
 * @param params
 */
export function editCoupon(params: Record<string, any>) {
    return request.post('coupon/edit', params)
}

/**
 * 删除优惠券
 * @param params
 */
export function deleteCoupon(params: Record<string, any>) {
    return request.post('coupon/delete', params)
}
